package com.xjnt.frameworks.exception;

public class BusinessException extends RuntimeException {
	/**
	 * Generated UID
	 */
	private static final long serialVersionUID = 1L;

	private String name;
	
	public BusinessException() {
		super();
	}

	public BusinessException(String name, String message) {
		super(message);
		this.name = name;
	}

	public BusinessException(String name, String message, Throwable cause,
			boolean enableSuppression, boolean writableStackTrace) {
		super(message, cause, enableSuppression, writableStackTrace);
		this.name = name;
	}

	public BusinessException(String name, String message, Throwable cause) {
		super(message, cause);
		this.name = name;
	}

	public BusinessException(String name, Throwable cause) {
		super(cause);
		this.name = name;
	}
	
	public String getName() {
		return name;
	}
}
